package factory;

import entity.WorldNPC;

public class NPCFactory implements loadsave.LoadSaveable {

    private static java.util.HashMap<String, WorldNPC> npcMap;
    
    /**
     * create the static map
     */
    static {
        npcMap = new java.util.HashMap<String, WorldNPC>();
    }
    
    /**
     * return an NPC based on the passed in string
     * @param npcType
     * @return
     */
    public static WorldNPC createNPC( String npcType ) {
        return npcMap.get(npcType);
    }
    
    public WorldNPC createNPC() {
        return null;
    }
    
    public loadsave.Memento getMemento() {
        throw new RuntimeException("memento not implemented in npcfactory");
        //return null;
    }
}
